//
//  SINAHttpRequestUtils.m
//  sinashebao
//
//  Created by  androidlongs on 2018/1/25.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#import "SINAHttpRequestUtils.h"
#import "SINAStringUtils.h"

@implementation SINAHttpRequestUtils

+(NSString *)encodeJsonParams:(NSString *)json{
    return [SINAStringUtils encodeBase64String:[SINAStringUtils encodeBase64String:json]];
}
+(NSString *)encodeDicParams:(NSDictionary *)dic{
    NSString *json=[dic modelToJSONString];
    return [SINAStringUtils encodeBase64String:[SINAStringUtils encodeBase64String:json]];
}
@end
